package com.ym.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Data
@Table
@TableComment("域名独立控制")
public class DmDomainIndependent {

    @ColumnComment("ID")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @Column
    @ColumnComment("客户ID")
    private Integer customerId;

    @Column
    @ColumnComment("域名ID")
    private Long domainId;

    @Column
    @ColumnComment("域名")
    private String domainName;

    @Column(length = 100)
    @ColumnComment("密码")
    private String password;

    @Column
    @ColumnComment("启用状态(0-未启用,1-启用)")
    private Short enableStatus;

    @Column
    @ColumnComment("过期时间")
    private LocalDateTime expireTime;

    @Column
    @ColumnComment("创建时间")
    private LocalDateTime createTime;

}
